#
# for i in range(1, 10):
#     print(f'函数内部 i = {i}')
# print(f'函数外部 i = {i}')


# for i in range(1, 9):
#     print(i)
#
#
# print('-------')
# print(i)

#
# if True:
#     x = 10
#
#
# print(x)

x = 20


def test():
    x = 10
    print(f'函数内部 x = {x}')


test()
print(f'函数外部 x = {x}')

